import Layout from '../layout/Index'

const routes = [
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/login',
    meta: { title: '登录' },
    component: () => import('../views/Login')
  },
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: 'home',
        meta: { title: '首页' },
        component: () => import('../views/Home')
      }
    ]
  },
  {
    path: '/component',
    component: Layout,
    meta: { title: '组件' },
    children: [
      {
        path: 'tablePage',
        meta: { title: '表格容器' },
        component: () => import('../views/List')
      }
    ]
  }
]

export default routes
